#!/usr/bin/env python
# -*-coding:UTF-8-*-
# Author: chenzuoqing@126.com
# Create: 2018/8/2 17:14
# File  : router.py

"""

"""

from rest_framework.routers import DefaultRouter
from permissions.views import PermissionViewset, MenuViewSet, GroupMenuViewset

permission_router = DefaultRouter()
permission_router.register('permissions', PermissionViewset, base_name="permissions")
# permission_router.register('grouppermissions', GroupPermissionViewset, base_name="grouppermissions")

permission_router.register('menus', MenuViewSet, base_name='menus')
permission_router.register('groupmenus', GroupMenuViewset, base_name='groupmenus')
